export default url => {
  const crud = window.$crud(url)

  crud.upload = (type,data) => window.$axios({
    url: `${url}/upload/${type}`,
    method: 'post',
    data
  })

  return {
      ...crud
  }
}